home *** CD-ROM | disk | FTP | other *** search
-
- # Copyright, 1990, Regents of the University of Colorado
- #
- # This is a Bourne shell script that handles the second half of the
- # DINO compilation process, that is, the half that happens on the
- # parallel machine. Please leave the first line blank so that
- # the machine knows that this is a bourne shell script.
- #
-
- #
- # Call the initialization script.
- #
- . dino2.init
-
- #
- # Determine if this script is called by the "dino" script or
- # directly by the programmer and set the defaults accordingly.
- #
- case $1 in
- T) Quiet=$1
- Destination=$2
- SuffixModel=$3
- Suffix=$4
- shift 4;;
- F) Quiet=$1
- Destination=$2
- SuffixModel=$3
- Suffix=$4
- shift 4;;
- *) ;;
- esac
-
- #
- # Get the machine specific compiling and linking information we will
- # need.
- #
- if test -f $Dhome/bin/local/dino2.$Destination
- then
- . $Dhome/bin/local/dino2.$Destination
- else
- echo " Illegal destination provided to dino2 ($Destination)"
- exit 1
- fi
-
- for temp in $*
- do Root=`dinortex $SuffixModel $Suffix $temp`
- set $Root
- Name=$1
- Root=$2
- dinochk2 $temp $Root
- case $? in
- 0) case $Quiet in
- T) ;;
- F) echo " $Root is up to date"
- echo;;
- esac;;
- *) case $Quiet in
- T) ;;
- F) echo " Compiling $temp to $Root . . ."
- echo ;;
- esac
- case $Root in
- host) cc $Dhostccopt -c -I${Dhome}/source/inc $temp
- case $? in
- 0) ;;
- *) echo " host compilation failed."
- echo
- rm -f $Name.o
- exit 1;;
- esac
- cc -o host $Dhostlnopt $Name.o $Dhostlibs
- case $? in
- 0) rm -f $Name.o;;
- *) echo " host link failed."
- echo
- rm -f $Name.o host
- exit 1;;
- esac;;
- *) cc $Dnodeccopt -c -I${Dhome}/source/inc $temp
- case $? in
- 0) ;;
- *) echo " $Root compilation failed."
- echo
- rm -f $Name.o
- exit 1;;
- esac
- $Dnodelinkcmd -o $Root $Dnodelnopt $Dnodemdls $Name.o $Dnodelibs
- case $? in
- 0) rm -f $Name.o;;
- *) echo " $Root link failed."
- echo
- rm -f $Name.o $Root
- exit 1;;
- esac ;;
- esac ;;
- esac
- done
- case $Quiet in
- T) ;;
- F) echo " DINO compilation completed."
- echo ;;
- esac
-
-